#encoding:utf8
import re

s = '元芳，你怎么看//@豆沙月饼kan肉2: 真的吗//@豆沙月饼kan肉1: 手抓饭也是'

p = re.compile(r'//@(.*?):')
l = p.findall(s)
print len(l)
for e in l:
        
    print e

print p.search(s).group()
print p.search(s).group(1)
print p.search(s).groups()

exit(0)

#p = re.compile('[\.][0-9]{0,3}$')
p = re.compile(r'''((?<=^)|(?<=\s))http://126.fm/[0-9a-zA-Z]{1,10}(?:(?![0-9a-zA-Z])|(?=$|\s))''')
print p.search(u'哈哈哈 http://126.fm/a1Ad拉拉').group()
print p.search(u'哈哈哈 http://126.fm/a1Ad asdasd').group()
print p.search(u'哈哈哈 http://126.fm/a1Ad').group()
print p.search(u'http://126.fm/a1Ad').group()

#print p.sub('', '.23123.123')

